#include <iostream>
#include <fstream>
#include <string>
#define FILENAME "log.txt"


int main()
{
    std::ofstream out(FILENAME, std::ios::binary);
    if (!out.is_open()) return 1;
    
    std::string messge = "hello world\n";
    out.write(messge.c_str(), messge.size());

    out.close();

    return 0;
}

